package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SysUserDao;
import cn.com.bdqn.entity.SysUser;
import cn.com.bdqn.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserDao dao;

    @Override
    public SysUser login(SysUser sysUser) {
        return dao.login(sysUser);
    }

    @Override
    public List<SysUser> queryManger() {
        return dao.queryManger();
    }

    @Override
    public SysUser queryById(SysUser sysUser) {
        return dao.queryById(sysUser);
    }

    @Override
    public List<Map> queryByLike(SysUser sysUser) {
        return dao.queryByLike(sysUser);
    }

    @Override
    public int updateSysUser(SysUser sysUser) {
        return dao.updateSysUser(sysUser);
    }

    @Override
    public int delSysUser(Long usrId) {
        return dao.delSysUser(usrId);
    }

    @Override
    public int addSysUser(SysUser sysUser) {
        return dao.addSysUser(sysUser);
    }
}
